import { Modifier } from "../../base/Modifier";
import { TextDirection } from "../../entity/Enum";

export class DirectionModifier extends Modifier {
    static identity = Symbol("direction");

    applyPeer(node: any, dir: any) {
        let direction: TextDirection = TextDirection.AUTO;
        if (dir == "Ltr") {
            direction = TextDirection.LTR;
        } else if (dir == "Rtl") {
            direction = TextDirection.RTL;
        } else if (dir == "Auto") {
            direction = TextDirection.AUTO;
        } else if (dir == "undefined") {    //&& Container::GreatOrEqualAPIVersion(PlatformVersion::VERSION_TEN)) {
            direction = TextDirection.AUTO;
        }
        console.log(direction);
        // globalThis.getArkUINativeModule().common.ParseLocationProps(node, direction) 
    }
} 